import request from '../../request'
const Api = {
	page: '/api/adminstu/stuOrder/page',
	selectById:'/api/adminstu/stuOrder/selectById',
	save:'/api/adminstu/stuOrder/save',
	update:'/api/adminstu/stuOrder/update',
	pay:'/api/adminstu/pay/pay',
	
	salepage:'/api/adminstu/stuOrder/matchPreInfo',
	depositPage:'/api/adminstu/stuOrderDeposit/page',
	coursePage:'/api/admincourseShiftInformation/courseShiftInformation/page',

    imports: '/api/adminstu/down/template/roolImport',
    template: '/api/adminstu/down/template/rollInfo',
}
export const page = data => {
    return request.request({
        url: Api.page,
        params: data,
        method: 'GET'
    })
}
export const selectById = data => {
    return request.request({
        url: Api.selectById,
        params: data,
        method: 'GET'
    })
}
export const save = data => {
    return request.request({
        url: Api.save,
        data,
        method: 'POST'
    })
}
export const update = data => {
    return request.request({
        url: Api.update,
        data,
        method: 'PUT'
    })
}
// 优惠列表
export const salepage = data => {
    return request.request({
        url: Api.salepage,
        data,
        method: 'POST'
    })
}
// 订金列表
export const depositPage = data => {
    return request.request({
        url: Api.depositPage,
        params: data,
        method: 'GET'
    })
}
// 课程班次信息
export const coursePage = data => {
    return request.request({
        url: Api.coursePage,
        params: data,
        method: 'GET'
    })
}
// 支付
export const pay = data => {
    return request.request({
        url: Api.pay,
        params: data,
        method: 'GET'
    })
}

/** 文件导入 */
export const imports = data => {
    return request.request({
      url: Api.imports,
      data,
      method: 'post'
    })
  }
  export const templateUrl = Api.template